package com.wenli.graduate2022.wenliGreenShop.service.servDao;

import com.wenli.graduate2022.wenliGreenShop.entity.Admin;

/**
 * @author HuangHai
 * @date 2021/10/5 14:46
 */
public interface AdminService {

    /**
     * 登录
     * @param name
     * @param psd
     * @return
     */
    Admin adminLogin( String name, String psd);
    Admin findById(Integer id);
    int updatePassword(Admin admin ,Integer id, String password);//修改密码,新密码在Admin里，旧密码是String password
}
